<?php

class ErrorController extends Core_Controller_Action 
{
	
	public function indexAction() {
		$this->_helper->layout->disableLayout();
	}
	
	public function errorAction() {
		$this->_helper->layout->disableLayout();
		
		$errors = $this->_getParam('error_handler');
		
		if( $errors ) {
			$this->view->e = $errors->exception;
		}
	}
}